/*
 *  Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.plian.system.entity.yth.finance;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.plian.system.entity.yth.YthBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * 债务管理-债务余额结构实体类
 *
 * @author BladeX
 * @since 2023-02-08
 */
@Data
@TableName("finance_debt_structure")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "DebtStructure对象", description = "债务管理-债务余额结构")
public class DebtStructure extends YthBaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 单据编码
     */
    @ApiModelProperty(value = "单据编码")
    private String number;
    /**
     * 主管部门
     */
    @ApiModelProperty(value = "主管部门")
    private String competentDeptName;
    /**
     * 所属年月（2202-10）
     */
    @ApiModelProperty(value = "所属年月（2202-10）")
    @TableField("`year_month`")
    private String yearMonth;
    /**
     * 所属年（2000）
     */
    @ApiModelProperty(value = "所属年（2000）")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    @TableField("`year`")
    private Integer year;
    /**
     * 所属月（10）
     */
    @ApiModelProperty(value = "所属月（10）")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    @TableField("`month`")
    private Integer month;
    /**
     * 财务报表类型（0:单户表, 1:集团差额表, 2:集团合并表 ）
     */
    @ApiModelProperty(value = "财务报表类型（0:单户表, 1:集团差额表, 2:集团合并表 ）")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer financeReportType;
    /**
     * 填报日期
     */
    @ApiModelProperty(value = "填报日期")
    private LocalDate reportTime;
    /**
     * 填报组织id
     */
    @ApiModelProperty(value = "填报组织id")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Long reportOrgId;
    /**
     * 填报组织名称
     */
    @ApiModelProperty(value = "填报组织名称")
    private String reportOrgName;
    /**
     * 填报人员id
     */
    @ApiModelProperty(value = "填报人员id")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Long reportUserId;
    /**
     * 填报人员名称
     */
    @ApiModelProperty(value = "填报人员名称")
    private String reportUserName;
    /**
     * 流程实例id
     */
    @ApiModelProperty(value = "流程实例id")
    private String processInstanceId;
    /**
     * 流程环节（0：企业内审1：上级审核）
     */
    @ApiModelProperty(value = "流程环节（0：企业内审1：上级审核）")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer processStatus;
    /**
     * 审核状态（0：草稿1：待审核2：审核中3：已通过4：已驳回）
     */
    @ApiModelProperty(value = "审核状态（0：草稿1：待审核2：审核中3：已通过4：已驳回）")
    @JsonSerialize(nullsUsing = NullSerializer.class)
    private Integer auditStatus;

}
